import { getUserInfoAPI } from '@/api/user';
import styles from './index.module.less';
const Home: React.FC = () => {
  async function fetchData() {
    const res = await getUserInfoAPI({
      page: 1,
      pageSize: 10,
      role: 'student',
      sortOrder: 'ASC',
      sortBy: 'createAt',
    });
    console.log(res);

    return res;
  }

  return (
    <div
      className={styles.container}
      onClick={() => {
        fetchData();
      }}
    >
      Home Page
    </div>
  );
};

export default Home;
